package io.hilo.example.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import org.hilo.boot.core.UT;
import org.hilo.boot.core.spring.RunAfterStart;

/**
 * 打印启动成功信息
 */
@Component
public class PrintStartInfo implements RunAfterStart {

    @Override
    public void doInit(Object[] args) {
        Logger logger = LoggerFactory.getLogger(getClass());
        logger.info("spring boot app started success!...........................");
        
        logger.info("如无后台线程，10 秒钟后 应用进程 将自动关闭....");
        UT.Thread.sleepThread(10000);
    }

}
